package com.hx.demo.serialize;

/**
 * @author Huathy
 * @date 2021-10-14 23:29
 * @description
 */
public interface ISerializer {
    <T> byte[] serialize(T obj);

    <T> T deserialize(byte[] data, Class<T> clazz);
}
